import config from '@/config'
let baseUrl = config.chronicDiseaseUrl
// 开发环境url配置
const devUrlConfig = {
	baseURL: baseUrl,
	imageUrl: config.imageUrl
};

// 生产环境url配置
const prodUrlConfig = {
	baseURL: baseUrl,
	imageUrl: config.imageUrl
};

let urlConfig;

switch (process.env.NODE_ENV) {
	case "development":
		urlConfig = devUrlConfig;
		break;
	case "production":
		urlConfig = prodUrlConfig;
		break;
	default:
		urlConfig = prodUrlConfig;
		break;
}

export default urlConfig;

